package com.gitee.wsl.ext.number

import com.gitee.wsl.ext.bitcode.umod

fun Int.cycle(min: Int, max: Int): Int = ((this - min) umod (max - min + 1)) + min

 fun Int.cycleSteps(min: Int, max: Int): Int = (this - min) / (max - min + 1)